package com.itheima.service;

import com.itheima.excel.model.StudentModel;
import com.itheima.pojo.PageResult;
import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;

import java.util.List;

public interface StudentService {
    /**
     * 分页查询
     *
     * @param studentQueryParam
     * @return
     */
    PageResult<Student> pageQuery(StudentQueryParam studentQueryParam);

    /**
     * 批量删除
     *
     * @param ids
     */
    void deleteById(List<Integer> ids);

    /**
     * 新增
     *
     * @param student
     */
    void save(Student student);

    /**
     * 根据Id查询
     *
     * @param id
     * @return
     */
    Student getInfo(Integer id);

    /**
     * 修改
     *
     * @param student
     */
    void update(Student student);

    /**
     * 违纪处理
     *
     * @param id
     * @param score
     */
    void violation(Integer id, Integer score);

    void importStudent(List<StudentModel> stuList, Integer clazzId);

    /**
     * 查询符合条件的学员列表
     *
     * @param queryParam
     * @return
     */
    List<StudentModel> list(StudentQueryParam queryParam);
    void deleteById(Integer id);
}